﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Supplier.aspx.cs" Inherits="Booking_Hotel.Admin.Supplier" %>
<%@ Register assembly="BasicFrame.WebControls.BasicDatePicker" namespace="BasicFrame.WebControls" tagprefix="BDP" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
     <link href="../CSS/Main_Control.css" rel="Stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
     <div class="box">
        <table>
            <tr>
                <td>SupplierID:</td>
                <td> 
                    <asp:TextBox ID="txt_SupplierID" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>UserName:</td>
                <td> 
                    <asp:TextBox ID="txt_UserName" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>Password:</td>
                <td> 
                    <asp:TextBox ID="txt_PassWord" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>Tên Kinh Doanh:</td>
                <td>
                    <asp:TextBox ID="txt_TenKinhDoanh" runat="server"></asp:TextBox> 
                </td>
            </tr>
               <tr>
                <td>Tên Đại Diện:</td>
                <td>
                    <asp:TextBox ID="txt_TenDaiDien" runat="server"></asp:TextBox> 
                </td>
            </tr>
               <tr>
                <td>Địa Chỉ:</td>
                <td>
                    <asp:TextBox ID="txt_DiaChi" runat="server"></asp:TextBox> 
                </td>
            </tr>
               <tr>
                <td>Mobile:</td>
                <td>
                    <asp:TextBox ID="txt_Mobile" runat="server"></asp:TextBox> 
                </td>
            </tr>
               <tr>
                <td>Điện Thoại Bàn:</td>
                <td>
                    <asp:TextBox ID="txt_DienThoaiBan" runat="server"></asp:TextBox> 
                </td>
            </tr>
               <tr>
                <td>SupplierLevel:</td>
                <td>
                    <asp:TextBox ID="txt_SupplierLevel" runat="server"></asp:TextBox> 
                </td>
            </tr>
               <tr>
                <td>Active:</td>
                <td>
                    <asp:DropDownList ID="ddl_Active" runat="server">
                    </asp:DropDownList>
                </td>
            </tr>
        <tr>
                <td>CreateDate:</td>
                <td>
                  <BDP:BasicDatePicker id="PK_Date" runat="server" DateFormat="dd/mm/yyyy" ReadOnly="true" SelectedDate="">
                  </BDP:BasicDatePicker>
                </td>
            </tr>
            <tr>
                <td colspan="2"> 
                    <asp:Button ID="bt_Insert" runat="server" Text="Insert" 
                        onclick="bt_Insert_Click"/>
                    <asp:Button ID="bt_Update" runat="server" Text="Update" />
                </td>     
            </tr>  
        </table>

     <asp:GridView ID="gv_Supplier" runat="server" CellPadding="4" 
            EnableModelValidation="True" ForeColor="#333333" GridLines="None" 
            AutoGenerateColumns="False" DataSourceID="Linq_Sup">
         <AlternatingRowStyle BackColor="White" />
         <Columns>
             <asp:BoundField DataField="SupplierID" HeaderText="SupplierID" 
                 SortExpression="SupplierID" />
             <asp:BoundField DataField="UserName" HeaderText="UserName" 
                 SortExpression="UserName" />
             <asp:BoundField DataField="PassWord" HeaderText="PassWord" 
                 SortExpression="PassWord" />
             <asp:BoundField DataField="TenKinhDoanh" HeaderText="TenKinhDoanh" 
                 SortExpression="TenKinhDoanh" />
             <asp:BoundField DataField="TenDaiDien" HeaderText="TenDaiDien" 
                 SortExpression="TenDaiDien" />
             <asp:BoundField DataField="DiaChi" HeaderText="DiaChi" 
                 SortExpression="DiaChi" />
             <asp:BoundField DataField="Mobile" HeaderText="Mobile" 
                 SortExpression="Mobile" />
             <asp:BoundField DataField="DienThoaiBan" HeaderText="DienThoaiBan" 
                 SortExpression="DienThoaiBan" />
             <asp:BoundField DataField="NgayDangKy" HeaderText="NgayDangKy" 
                 SortExpression="NgayDangKy" />
             <asp:TemplateField HeaderText="Control">
             <ItemTemplate>
                    <table>
                        <tr align="center">
                            <td>
                                <asp:ImageButton ID="ImageButton1" runat="server" CommandName="Delete" 
                                    ImageUrl="~/Images/delete.gif"/>
                             </td>
                            <td>
                                
                                <asp:ImageButton ID="ImageButton2" runat="server" CommandName="Select" 
                                    ImageUrl="~/Images/edit.gif" />
                                
                            </td>
                        </tr>
                    </table>
                
                </ItemTemplate>
             </asp:TemplateField>
         </Columns>
         <EditRowStyle BackColor="#2461BF" />
         <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
         <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
         <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
         <RowStyle BackColor="#EFF3FB" />
         <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
     </asp:GridView>
 
    
        
 
    
        
 
    
        
 
    
         
 
    
        
 
    
        
 
    
        
 
    
         <asp:LinqDataSource ID="Linq_Sup" runat="server">
         </asp:LinqDataSource>
         <asp:LinqDataSource ID="LinqDataSource1" runat="server" 
             ContextTypeName="<%$ ConnectionStrings:ttewjkqv_webdemo23ConnectionString %>" 
             TableName="">
         </asp:LinqDataSource>
 
    
        
 
    
        
 
    
        
 
    
         
 
    
        
 
    
        
 
    
        
 
    
</div>
    </form>
</body>
</html>
